#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
using namespace std;

int main(int N){
    string stri;
    std::vector<int> list1;
    scanf("%d",&N);
    int sum = 0;
    for (int k=0;k<N;k++){
        std::cin>>list1[k];
        sum+=list1[k];       
    }

    double average =sum/N;
    double sum2 = 0.0;
    for (int i=0;i<N;i++){
        sum2+=(list1[i]-average)*(list1[i]-average);

    }
    double result =std::sqrt(sum2/N);
    printf("%.2f %2.f",average,result);
}
